{include file="public:header" /}
<!--单网页内容编辑-->
<form id="info_form" action="{:url('One/editDo')}" method="post" enctype="multipart/form-data">
<div class="pad_lr_10">
	<div class="col_tab">
		<ul class="J_tabs tab_but cu_li">
			<li class="current">基本信息</li>
			<li>SEO 设置</li>
		</ul>
		<div class="J_panes">
			<div class="content_list pad_10">
				<table width="100%" cellspacing="0" class="table_form">
					<tr>
						<th>所属分类 :</th>
						<td>{$cate.name}</td>
					</tr>
			        <tr>
						<th width="100">标题 :</th>
					 	<td><input type="text" name="title" class="input-text" size="60" value="{$info.title}"></td>
					</tr>
					<tr>
						<th>是否外链 :</th>
						<td>
							<input type="radio" name="is_link" value="1" {notempty name="info.url"}checked{/notempty}>是
							<input type="radio" name="is_link" value="0" {empty name="info.url"}checked{/empty}>否
						</td>
					</tr>
					<tr id="url" {empty name="info.url"}style="display:none;"{/empty}>
						<th>链接地址 :</th>
						<td>
							<input type="text" name="url" class="input-text" size="50" value="{$info.url}">
						</td>
					</tr>
					<tr>
						<th>简介 :</th>
						<td>
							<textarea style="width:800px;height:80px;resize: none;" name="description">{$info.description}</textarea>
						</td>
					</tr>
					<tr id="content" {notempty name="info.url"}style="display:none;"{/notempty}>
						<th>内容 :</th>
						<td><script id="info" name="info" type="text/plain">{$info.info}</script></td>
					</tr>
				</table>
			</div>
			<div class="content_list pad_10 hidden">
				<table width="100%" cellspacing="0" class="table_form">
			        <tr>
						<th width="100">SEO 标题 :</th>
					 	<td><input type="text" name="seo_title" class="input-text" size="60" value="{$info.seo_title}"></td>
					</tr>
					<tr>
						<th>SEO 关键词 :</th>
						<td><input type="text" name="seo_keys" class="input-text" size="60" value="{$info.seo_keys}"></td>
					</tr>
					<tr>
						<th>SEO 描述 :</th>
						<td><textarea name="seo_desc" cols="80" rows="8">{$info.seo_desc}</textarea></td>
					</tr>
				</table>
			</div>
		</div>
	</div>
	<div class="mt10"><input type="submit" value="提交" name="dosubmit" class="btn btn_submit" style="margin:0 0 10px 10px;"></div>
</div>
<input type="hidden" name="id" value="{$cate.id}" />
</form>
{include file="public:footer" /}

<script type="text/javascript">
	$(function(){
		$('ul.J_tabs').tabs('div.J_panes > div');
		$('input[name="is_link"]').bind('click',function(){
			var v = $(this).val();
			if(v == 1){
				$('#url').show();
				$('#content').hide();
			}else{
				$('#url').hide().find('input').val('');
				$('#content').show();
			}
		});
	});
</script>
<script src="__PUBLIC__/js/plugins/jquery.tools.min.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script src="__PUBLIC__/js/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
	window.UEDITOR_HOME_URL='__PUBLIC__/js/ueditor/';
	window.onload=function(){
		window.UEDITOR_CONFIG.initialFrameWidth=880;
		window.UEDITOR_CONFIG.initialFrameHeight=500;
		UE.getEditor('info');
		//  upmoreimg();
	}
</script>
</body>
</html>